package com.zhentao.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.ZoneAvoidanceRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Date 2024/3/26 15:07
 * @Author xdm
 **/
@Configuration
public class MyRuleConfig {
    @Bean
    public IRule getRule(){
        return new ZoneAvoidanceRule();
    }
}
